#include "maderfaker.h"


namespace maderfaker{

	void ImgShower::sh(char * wndName, cv::Mat img){
			bool contains = false;
			std::vector<std::string>::iterator it = regWindows.begin();
			for(it; it != regWindows.end();it++){
				if(*it == wndName){
					contains = true;
					break;
				}
			}
			if(!contains){
				regWindows.push_back(wndName);
				cv::namedWindow(wndName);
			}
		
			imshow(wndName,img);
			cv::waitKey();
		
		}
}